package com.jx.driving.transmission;

import com.jx.driving.domain.GnssPackage;
import com.jx.driving.message.TimeTerminalTransmissionMessage;
import com.jx.driving.protocol.terminal.annotation.BcdAnnotation;
import com.jx.driving.protocol.terminal.annotation.DwordAnnotation;
import com.jx.driving.protocol.terminal.annotation.LimitedStringAnnotation;
import com.jx.driving.protocol.terminal.annotation.ObjectAnnotation;
import com.jx.driving.protocol.terminal.annotation.TerminalAnnotation;

/**
 * 上报学员登录
 * 
 * @author shenliuyang
 *
 *         2016年8月15日上午10:02:14
 */
@TerminalAnnotation
public class Terminal0x0201Transmission extends TimeTerminalTransmissionMessage {
    @LimitedStringAnnotation(value = 16, order = 1)
    private String userNo;// 学员编号
    @LimitedStringAnnotation(value = 16, order = 2)
    private String coachNo;// 教练编号
    @BcdAnnotation(value = 5, order = 3)
    private String course;// 课程
    @DwordAnnotation(order = 4)
    private long classId;// 课堂id
    @ObjectAnnotation(order = 5)
    private GnssPackage gnss;//

    public String getUserNo() {
	return userNo;
    }

    public void setUserNo(String userNo) {
	this.userNo = userNo;
    }

    public String getCoachNo() {
	return coachNo;
    }

    public void setCoachNo(String coachNo) {
	this.coachNo = coachNo;
    }

    public String getCourse() {
	return course;
    }

    public void setCourse(String course) {
	this.course = course;
    }

    public long getClassId() {
	return classId;
    }

    public void setClassId(long classId) {
	this.classId = classId;
    }

    public GnssPackage getGnss() {
	return gnss;
    }

    public void setGnss(GnssPackage gnss) {
	this.gnss = gnss;
    }

    @Override
    public String toString() {
	StringBuilder builder = new StringBuilder();
	builder.append("Terminal0x0201Transmission [userNo=").append(userNo).append(", coachNo=").append(coachNo)
		.append(", course=").append(course).append(", classId=").append(classId).append(", gnss=").append(gnss)
		.append("]");
	return builder.toString();
    }

}
